package 代理模式;

public class DogStaticProxy {

    private Dog dog;

    public DogStaticProxy(Dog dog) {
        this.dog = dog;
    }

    public void dance() {
        System.out.println("跳舞前...");
        dog.dance();
        System.out.println("跳舞后...");
    }
}
